package com.xm.clj.underserver.utils;

import com.xm.clj.underserver.bean.GetMessage;

public class SendMessage {

    public static GetMessage SUCCESS = create("100","成功！");
    public static GetMessage RegError1 = create("201","信息不完整，注册失败！");
    public static GetMessage RegError2 = create("202","账号只能由数字或密码组合，注册失败！");
    public static GetMessage RegError3 = create("203","账号已存在，注册失败！");
    public static GetMessage RegError4 = create("204","两次密码不一致，注册失败！");
    public static GetMessage LogError1 = create("301","信息不完整，登录失败！");
    public static GetMessage LogError2 = create("302","账号不存在，登录失败！");
    public static GetMessage LogError3 = create("303","密码错误，登录失败！");
    public static GetMessage findRoomError = create("401","未找到指定房间！");

    private static GetMessage create(String id,String mes){

        GetMessage getMessage = new GetMessage();
        getMessage.setId(id);
        getMessage.setMes(mes);
        return getMessage;
    }

}
